package com.cskaoyan.javase.oop3._1interface._4example.model;

/**
 * 使用数组来模拟数据源
 * @since 16:31
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class GoodsData {
    public static final Goods[] GOODS = new Goods[10];

    static {
        GOODS[0] = new Goods(1, "IPhone 13 Pro Max", 13000);
        GOODS[1] = new Goods(2, "华为mate50", 8000);
        GOODS[2] = new Goods(3, "小米12", 5000);
        GOODS[3] = new Goods(4, "OPPO音乐手机", 3000);
        GOODS[4] = new Goods(5, "Vivo音乐手机", 4000);
    }
}
